Optimal. Leaf size=73 \[ \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {b x^2 \log \left (1+e^{2 i \left (c+d x^2\right )}\right )}{2 d}+\frac {i b \text {PolyLog}\left (2,-e^{2 i \left (c+d x^2\right )}\right )}{4 d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {14, 3832, 3800,
2221, 2317, 2438} \begin {gather*} \frac {a x^4}{4}+\frac {i b \text {Li}_2\left (-e^{2 i \left (d x^2+c\right )}\right )}{4 d^2}-\frac {b x^2 \log \left (1+e^{2 i \left (c+d x^2\right )}\right )}{2 d}+\frac {1}{4} i b x^4 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2221
Rule 2317
Rule 2438
Rule 3800
Rule 3832
Rubi steps
\begin {align*} \int x^3 \left (a+b \tan \left (c+d x^2\right )\right ) \, dx &=\int \left (a x^3+b x^3 \tan \left (c+d x^2\right )\right ) \, dx\\ &=\frac {a x^4}{4}+b \int x^3 \tan \left (c+d x^2\right ) \, dx\\ &=\frac {a x^4}{4}+\frac {1}{2} b \text {Subst}\left (\int x \tan (c+d x) \, dx,x,x^2\right )\\ &=\frac {a x^4}{4}+\frac {1}{4} i b x^4-(i b) \text {Subst}\left (\int \frac {e^{2 i (c+d x)} x}{1+e^{2 i (c+d x)}} \, dx,x,x^2\right )\\ &=\frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {b x^2 \log \left (1+e^{2 i \left (c+d x^2\right )}\right )}{2 d}+\frac {b \text {Subst}\left (\int \log \left (1+e^{2 i (c+d x)}\right ) \, dx,x,x^2\right )}{2 d}\\ &=\frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {b x^2 \log \left (1+e^{2 i \left (c+d x^2\right )}\right )}{2 d}-\frac {(i b) \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{2 i \left (c+d x^2\right )}\right )}{4 d^2}\\ &=\frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {b x^2 \log \left (1+e^{2 i \left (c+d x^2\right )}\right )}{2 d}+\frac {i b \text {Li}_2\left (-e^{2 i \left (c+d x^2\right )}\right )}{4 d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 73, normalized size = 1.00 \begin {gather*} \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {b x^2 \log \left (1+e^{2 i \left (c+d x^2\right )}\right )}{2 d}+\frac {i b \text {PolyLog}\left (2,-e^{2 i \left (c+d x^2\right )}\right )}{4 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.14, size = 0, normalized size = 0.00 \[\int x^{3} \left (a +b \tan \left (d \,x^{2}+c \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 155 vs. \(2 (56) = 112\).
time = 0.39, size = 155, normalized size = 2.12 \begin {gather*} \frac {2 \, a d^{2} x^{4} - 2 \, b d x^{2} \log \left (-\frac {2 \, {\left (i \, \tan \left (d x^{2} + c\right ) - 1\right )}}{\tan \left (d x^{2} + c\right )^{2} + 1}\right ) - 2 \, b d x^{2} \log \left (-\frac {2 \, {\left (-i \, \tan \left (d x^{2} + c\right ) - 1\right )}}{\tan \left (d x^{2} + c\right )^{2} + 1}\right ) - i \, b {\rm Li}_2\left (\frac {2 \, {\left (i \, \tan \left (d x^{2} + c\right ) - 1\right )}}{\tan \left (d x^{2} + c\right )^{2} + 1} + 1\right ) + i \, b {\rm Li}_2\left (\frac {2 \, {\left (-i \, \tan \left (d x^{2} + c\right ) - 1\right )}}{\tan \left (d x^{2} + c\right )^{2} + 1} + 1\right )}{8 \, d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{3} \left (a + b \tan {\left (c + d x^{2} \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.44, size = 155, normalized size = 2.12 \begin {gather*} \frac {a\,x^4}{4}-\frac {b\,\left (\pi \,\ln \left (\cos \left (d\,x^2\right )\right )+2\,c\,\ln \left ({\mathrm {e}}^{-d\,x^2\,2{}\mathrm {i}}\,{\mathrm {e}}^{-c\,2{}\mathrm {i}}+1\right )-\pi \,\ln \left ({\mathrm {e}}^{-d\,x^2\,2{}\mathrm {i}}\,{\mathrm {e}}^{-c\,2{}\mathrm {i}}+1\right )-\ln \left (\cos \left (d\,x^2+c\right )\right )\,\left (2\,c-\pi \right )-\pi \,\ln \left ({\mathrm {e}}^{d\,x^2\,2{}\mathrm {i}}+1\right )+\mathrm {polylog}\left (2,-{\mathrm {e}}^{-d\,x^2\,2{}\mathrm {i}}\,{\mathrm {e}}^{-c\,2{}\mathrm {i}}\right )\,1{}\mathrm {i}+d^2\,x^4\,1{}\mathrm {i}+2\,d\,x^2\,\ln \left ({\mathrm {e}}^{-d\,x^2\,2{}\mathrm {i}}\,{\mathrm {e}}^{-c\,2{}\mathrm {i}}+1\right )+c\,d\,x^2\,2{}\mathrm {i}\right )}{4\,d^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________